<?php
class Services_Log
{
	private $mapper;
	
	public function Services_Log() {
		$this->mapper =  Manager::getMapper();
	}

	/**
	 *
	 * @return array
	 */
	public function getLogs()
	{
		$tableLog = Manager::getFactoryModel()->getLog();
		$rowLogs = $tableLog->fetchAll();
		return $this->mapper->arraysToObjects($rowLogs, "Datas_Core_Log");
	}
}
